package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagSpecificationDO;
import com.starlink.model.request.SchoolbagSpecificationRequest;
import com.starlink.model.vo.SchoolbagSpecificationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagSpecificationDtoMapper {

    SchoolbagSpecificationDtoMapper INSTANCE = Mappers.getMapper(SchoolbagSpecificationDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagSpecificationDO
    * @return
    */
    SchoolbagSpecificationVO do2VO(SchoolbagSpecificationDO schoolbagSpecificationDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagSpecificationDO request2DO(SchoolbagSpecificationRequest request);
}
